<?php


use Illuminate\Routing\Router;

Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
    'as'            => config('admin.route.prefix') . '.',
], function (Router $router) {

    $router->get('/', 'HomeController@index')->name('home');

    $router->get('companys', 'CompanyController@companys');


    $router->get('show', 'GoodController@send');
    $router->post('show', 'GoodController@send');


    $router->resource('users', UserController::class);
    $router->resource('colors', ColorController::class);
    $router->resource('types', TypeController::class);
    $router->resource('suppliers', SupplierController::class);
    $router->resource('materials', MaterialController::class);
    $router->resource('articles', ArticleController::class);
    $router->resource('app_versions', AppVersionController::class);
    $router->resource('print_device', PrintDeviceController::class);


    $router->resource('orders', OrderController::class);

    $router->resource('goods', GoodController::class);

    $router->resource('tests', TestController::class);


    $router->resource('ads', AdController::class);


    $router->get('getType', 'TypeController@getType');



});
